﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MINERP.DAL;
using MINERP.DAL.InfoConfig;

namespace MINERP.BLL.InfoConfig
{
    public class ProductCategoryBLL
    {

        #region //Private Fields


        #endregion


        #region //Public Properties

        #endregion



        #region //Public Methods
        /// <summary>
        /// Get PorductCategory list
        /// </summary>
        /// <returns></returns>
        public List<Tb_PorductCategory> GetProductCategoryList()
        {
            return ProductCategoryDAL.GetProductCategoryList();
        }
        /// <summary>
        /// Get PorductCategory object
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public Tb_PorductCategory GetProductCategoryObj(string name)
        {
            return ProductCategoryDAL.GetProductCategoryObj(name);
        }

        /// <summary>
        /// Get PorductCategory object
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public Tb_PorductCategory GetProductCategoryObj(int id)
        {
            return ProductCategoryDAL.GetProductCategoryObj(id);
        }

        public void Add(Tb_PorductCategory obj)
        {
            ProductCategoryDAL.Add(obj);
        }

        public void Update()
        {
            ProductCategoryDAL.Update();
        }
        public void Delete(Tb_PorductCategory obj)
        {
            ProductCategoryDAL.Delete(obj);
        }
        #endregion
    }
}
